; Cool Intro for POSx86

%define MIKEOS_VER '1.3'
    BITS 16
    %INCLUDE "mikedev.inc"
    ORG 32768
load:
	mov ah,0x0
	mov al,0x2
	int 0x10
	mov ax,0x1003
	mov bx,0
	int 0x10
	call os_clear_screen
	jmp .exit
	mov ax, .title_msg
	mov bx, .footer_msg
	mov cx, 0x0F	; Colour
	call os_draw_background
	mov si,init1
	call os_print_string
	call os_print_newline
	mov ax,5
	call os_pause
	mov si,init2
	call os_print_string
	call os_print_newline
	mov si,init3
	call os_print_string
	call os_print_newline
	call os_pause
	mov si,init4
	call os_print_string
	call os_print_newline
	call os_pause
	mov si,init5
	call os_print_string
	call os_print_newline
	call os_pause
	mov si,init6
	call os_print_string
	call os_print_newline
	call os_pause
	mov si,init7
	call os_print_string
	call os_print_newline
	mov ax,10
	call os_pause
	mov si,init8
	call os_print_string
	call os_print_newline
	mov ax,10
	call os_pause
	mov si,loaded
	call os_print_string
	call os_wait_for_key
	jmp .exit
	.title_msg	db 'POSNT Kernel (Version 0.8.1.2)', 0
	.footer_msg	db 'System is intializing.....', 0
.exit:
	mov ah,0x0
	mov al,0x2
	int 0x10
	mov ax,0x1003
	mov bx,0
	int 0x10
	call os_clear_screen
	mov dl, 0
	mov dh, 0
	call os_move_cursor
	mov ah, 09h			; Draw white bar at top
	mov bh, 0
	mov cx, 80
	mov bl, 0x1F
	mov al, ' '
	int 10h
	;call os_print_newline
	mov bl, 0x9F; White on red
	mov dl, 0		; Start X position
	mov dh, 1		; Start Y position
	mov si, 110	; Width
	mov di, 6	; Finish Y position
	call os_draw_block
	mov dh,1
	mov dl,0
	call os_move_cursor
	mov si,start_string
	call os_print_string
	mov bx, tmp_string
	call os_get_time_string
	mov si, bx
	call os_print_string
	call os_print_newline
	mov si,version_msg
	call os_print_string
	call os_print_newline
	mov si,wassup
	call os_print_string
	call os_print_newline
	mov dl,0
	mov dh,0
	call os_move_cursor
	mov si,lol
	call os_print_string
	ret
	loaded db 'KERN86.BIN Loaded in Memory. Press a Key to Continue....',0
	start_string db 'Machine Was Executed On : ',0
	version_msg		db 'POS is free software!',0
	wassup db 'Type HELP for a List of Commands',0
	tmp_string times 15 db 0
	lol db 'POSNT 0.8.1.2',0
	init1 db 'Loaded : A:\KERN86.BIN /FAT12.SYS',0
	init2 db 'Loaded : A:\KERN86.BIN /PEX.SYS',0
	init3 db 'Loaded : A:\KERN86.BIN /DOS.SYS',0
	init4 db 'Loaded : A:\KERN86.BIN /EXTDSK.SYS',0
	init5 db 'Loaded : A:\KERN86.BIN /FONT16.SYS',0
	init6 db 'Loaded : A:\KERN86.BIN /NTLOAD.SYS',0
	init7 db 'Loaded : A:\KERN86.BIN /SERIAL.SYS',0
	init8 db 'Loaded : A:\KERN86.BIN /MEMX86.SYS',0
	; ------------------------------------------------------------------